package com.anycl.design.structural.proxy.staticproxy;

import lombok.extern.slf4j.Slf4j;

/**
 * 模拟用户自己买票
 */
@Slf4j
public class Buyer implements IBuyer {

    private String name;

    public Buyer(String name) {
        this.name = name;
    }

    @Override
    public void login(String username, String password) {
        log.info("用户：" + username + " 使用密码：" + password);
    }

    @Override
    public void buyTicket() {
        log.info(name + "正在购票");
    }
}
